package com.google.android.apps.skipbot;

import android.os.AsyncTask;

/**
 * Class that implements a robot movement sequence for sitting.
 */
public class SkipperSitSequence extends SkipperMovementSequence {

  /**
   * Creates a sit sequence for the Skipper robot.
   * 
   * @param robotConfig robot configuration
   * @param robotController robot controller that enables robot movements
   */
  public SkipperSitSequence(SkipperRobotConfigInterface robotConfig,
      SkipperRobotController robotController) {
    super(robotConfig, robotController);
  }

  @Override
  public void run(AsyncTask<RobotMovementSequence, Integer, Boolean> asyncTask) {
    robotController.moveAllServos(sitAngle);
  }

}
